﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using WoChu.RfClient.Entity;
using WoChu.CF.Base;

namespace WoChu.RfClient.Duty.IFace
{
    [ServiceName(Name = "ProfitAndLoss")]
    public interface IProfitAndLoss
    {
        [Mapping(MethodUrl = "InsertProfitAndLoss?orderNo={0}&oprNo={1}")]
        ResultModel<bool> InsertProfitAndLoss(string orderNo, string oprNo, List<ProfitAndLossDetailInfo> profitAndLossDetailInfo);

        [Mapping(MethodUrl = "Query?lookId={0}")]
        ResultModel<List<LookUpItemInfo>> Query(string lookId);

        [Mapping(MethodUrl = "GetGoodsNameByCode?goodsCode={0}")]
        ResultModel<string> GetGoodsNameByCode(string goodsCode);
    }
}
